package com.jwsoft.manager.core.dao.model;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 学生户籍信息比对表
 *
 * @author zhiyuan
 * @since 2023-08-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("edu_household_bd")
@Schema(name = "EduHouseholdBd", title = "学生户籍信息比对表", description = "学生户籍信息比对表实体类")
public class EduHouseholdBd extends Model<EduHouseholdBd> {

    private static final long serialVersionUID = 1L;

    @Schema(name = "eduHouseholdBdId", description = "主键")
    @TableId(value = "edu_household_bd_id", type = IdType.INPUT)
    private Long eduHouseholdBdId;

    @Schema(name = "fullName", description = "学生姓名")
    @TableField(value = "full_name")
    private String fullName;

    @Schema(name = "idcard", description = "学生身份证")
    @TableField(value = "idcard")
    private String idcard;

    @Schema(name = "householdPlace", description = "户籍地")
    @TableField(value = "household_place")
    private String householdPlace;

    @Schema(name = "year", description = "年份")
    @TableField(value = "year")
    private Integer year;

    @Schema(name = "bdStatus", description = "比对时间")
    @TableField(value = "bd_status")
    private String bdStatus;

    @Schema(name = "bdTime", description = "比对时间")
    @TableField(value = "bd_time")
    private Date bdTime;

    @Schema(name = "bdMsg", description = "比对结果信息")
    @TableField(value = "bd_msg")
    private String bdMsg;

    @Schema(name = "createName", description = "创建人")
    @TableField(value = "create_name", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NOT_NULL)
    private String createName;

    @Schema(name = "createTime", description = "创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NOT_NULL)
    private Date createTime;

    @Schema(name = "updateName", description = "修改人")
    @TableField(value = "update_name", fill = FieldFill.INSERT_UPDATE, updateStrategy = FieldStrategy.NOT_NULL)
    private String updateName;

    @Schema(name = "updateTime", description = "更新时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE, updateStrategy = FieldStrategy.NOT_NULL)
    private Date updateTime;

    @Schema(name = "areaCode", description = "行政区划")
    @TableField(value = "area_code")
    private String areaCode;

    @Schema(name = "del", description = "逻辑删除标志")
    @TableField(value = "del", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NOT_NULL)
    @TableLogic
    private String del;

    @Override
    public Serializable pkVal() {
        return this.eduHouseholdBdId;
    }
}
